package
{
	import com.device.Device;
	import com.device.OsType;
	import com.device.ScreenDirection;
	
	import flash.display.Sprite;
	import flash.display.StageAlign;
	import flash.display.StageScaleMode;
	
	import view.login.LoginView;
	
	
	
	/**
	 * @author 강석민
	 */	
	[SWF(width="480", height="800")]
	public class XM_TEST_01 extends Sprite
	{
		//-----------------------------------------------------------------------------------
		// public vars
		//-----------------------------------------------------------------------------------
		static public var FIRST_PAGE : Class;
		//-----------------------------------------------------------------------------------
		// protected / internal vars
		//-----------------------------------------------------------------------------------
		//-----------------------------------------------------------------------------------
		// private vars
		//-----------------------------------------------------------------------------------
		//-----------------------------------------------------------------------------------
		// public functions
		//-----------------------------------------------------------------------------------
		/**
		 * constructor 
		 */	
		public function XM_TEST_01()
		{
			super();
			
			FIRST_PAGE = LoginView;
//			FIRST_PAGE = View01_XMSprite;
//			FIRST_PAGE = View02_Radio;
//			FIRST_PAGE = View03_CheckBox;//전체 선택 도 만들자
//			FIRST_PAGE = View04_AlignFactory;
//			FIRST_PAGE = View05_SWCButton;
//			FIRST_PAGE = View06_Spinner;
//			FIRST_PAGE = View07_TextInput;
//			FIRST_PAGE = View08_UISheet_Spinner;
//			FIRST_PAGE = View09_UISheet_Button;
//			FIRST_PAGE = View10_Table;
//			FIRST_PAGE = View11_Popup;
//			FIRST_PAGE = View12_List;
//			FIRST_PAGE = View13_TrunCateTextField;
//			FIRST_PAGE = View14_XmlParsing;
//			FIRST_PAGE = View15_StageWebView;
//			FIRST_PAGE = View16_CustomBar;
//			FIRST_PAGE = View17_Carousel;
//			FIRST_PAGE = View18_ScrollableContainer;
//			FIRST_PAGE = View19_Camera;
//			FIRST_PAGE = View20_AlbumAccess;
//			FIRST_PAGE = View21_TabContent;
			
			//기기 타입 설정
			Device.osType = OsType.ANDROID;
			//Device.osType = OsType.IOS;
			
			//기기 화면방향 설정
			Device.screenDirection = ScreenDirection.VERTICAL;
			//Device.screenDirection = ScreenDirection.HORIZONTAL;
						
			stage.align = StageAlign.TOP_LEFT;
			stage.scaleMode = StageScaleMode.NO_SCALE;
			this.addChild( new AppStage );
			
			
		}
		//-----------------------------------------------------------------------------------
		// setter / getter
		//-----------------------------------------------------------------------------------
		//-----------------------------------------------------------------------------------
		// protected functions
		//-----------------------------------------------------------------------------------
		//-----------------------------------------------------------------------------------
		// internal functions
		//-----------------------------------------------------------------------------------
		//-----------------------------------------------------------------------------------
		// private functions
		//-----------------------------------------------------------------------------------
		//-----------------------------------------------------------------------------------
		// event handler
		//-----------------------------------------------------------------------------------
		
		
		
	}
}